//
//  SRMessageListTableViewCell.m
//  StoryShow
//
//  Created by CyonLeuMBP on 2017/5/1.
//  Copyright © 2017年 qudiandu.cn. All rights reserved.
//

#import "SRMessageListTableViewCell.h"

#import <NSDate+DateToDisplayString.h>

NSString *const kSRMessageListTableViewCell = @"SRMessageListTableViewCell";

@implementation SRMessageListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    FZStyleSheet *css = [FZStyleSheet currentStyleSheet];
    
    self.backgroundColor = [UIColor clearColor];
    self.contentView.backgroundColor = [UIColor clearColor];
    self.titleLabel.textColor = self.contentLabel.textColor = self.timeLabel.textColor = css.color_4;
    self.titleLabel.font = css.fontOfH5;
    self.contentLabel.font = css.fontOfH7;
    self.timeLabel.font = css.fontOfH7;
    
    self.selectionStyle = UITableViewCellSelectionStyleNone;

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)updateCellInfo:(SRMessageListModel *)model {
    
    self.titleLabel.text = model.title;
    self.contentLabel.text = model.content;
    
    self.timeLabel.text = [NSDate dateToDetailDisplayStringForTimeInterval:[model.create_time longLongValue]];
}




@end
